<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Cheshire-CSG: Box Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Cheshire-CSG
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Box Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Box" --><!-- doxytag: inherits="Primitive" -->
<p><a class="el" href="class_box.html" title="Box class.">Box</a> class.  
 <a href="class_box.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="box_8h_source.html">box.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Box:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_box.png" usemap="#Box_map" alt=""/>
  <map id="Box_map" name="Box_map">
<area href="class_primitive.html" title="Primitive class." alt="Primitive" shape="rect" coords="0,56,60,80"/>
<area href="class_node.html" title="Node class." alt="Node" shape="rect" coords="0,0,60,24"/>
</map>
 </div></div>

<p><a href="class_box-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca78d7db44972bfa78d46b7bbc8796f6"></a><!-- doxytag: member="Box::Box" ref="aca78d7db44972bfa78d46b7bbc8796f6" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#aca78d7db44972bfa78d46b7bbc8796f6">Box</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a generic box (empty). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4a2a18916c428de651b22cdf280bf3e"></a><!-- doxytag: member="Box::Box" ref="ab4a2a18916c428de651b22cdf280bf3e" args="(const Vector &amp;)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Box</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f9d59659dc2304ed62088464f48c4da"></a><!-- doxytag: member="Box::Box" ref="a1f9d59659dc2304ed62088464f48c4da" args="(const Vector &amp;, const Vector &amp;, const Vector &amp;, const Vector &amp;, int)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Box</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;, const <a class="el" href="class_vector.html">Vector</a> &amp;, int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa151dd75dfbe1632979853fe157322ea"></a><!-- doxytag: member="Box::Box" ref="aa151dd75dfbe1632979853fe157322ea" args="(const Vector &amp;, const double &amp;)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Box</b> (const <a class="el" href="class_vector.html">Vector</a> &amp;, const double &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85ed08338073ace8d12833af0c861efb"></a><!-- doxytag: member="Box::Box" ref="a85ed08338073ace8d12833af0c861efb" args="(Vector *, int)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Box</b> (<a class="el" href="class_vector.html">Vector</a> *, int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a7c6f0b0405db01518bb3201b00c9a2"></a><!-- doxytag: member="Box::Box" ref="a0a7c6f0b0405db01518bb3201b00c9a2" args="(const Box &amp;, const Box &amp;)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Box</b> (const <a class="el" href="class_box.html">Box</a> &amp;, const <a class="el" href="class_box.html">Box</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6a5e09398e85d602a046b429062fb9c2"></a><!-- doxytag: member="Box::~Box" ref="a6a5e09398e85d602a046b429062fb9c2" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a6a5e09398e85d602a046b429062fb9c2">~Box</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy a box, empty. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad41f9a6efac5787613914b12e4c3d11d"></a><!-- doxytag: member="Box::operator[]" ref="ad41f9a6efac5787613914b12e4c3d11d" args="(int)" -->
<a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#ad41f9a6efac5787613914b12e4c3d11d">operator[]</a> (int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns either end vertex of the box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae638073ba0eb5b6cb7a1f9de3b9a7bd8"></a><!-- doxytag: member="Box::operator[]" ref="ae638073ba0eb5b6cb7a1f9de3b9a7bd8" args="(int) const " -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#ae638073ba0eb5b6cb7a1f9de3b9a7bd8">operator[]</a> (int) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Overloaded. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a44e2805cb2a7acaaa3937522fae56d23"></a><!-- doxytag: member="Box::Center" ref="a44e2805cb2a7acaaa3937522fae56d23" args="() const " -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a44e2805cb2a7acaaa3937522fae56d23">Center</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the center of the box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e077400dd38d177c39bcc711788eed9"></a><!-- doxytag: member="Box::Diagonal" ref="a3e077400dd38d177c39bcc711788eed9" args="() const " -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a3e077400dd38d177c39bcc711788eed9">Diagonal</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the half diagonal of the box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a44dd9300bf9713c9190c3a1e69ef5728"></a><!-- doxytag: member="Box::Radius" ref="a44dd9300bf9713c9190c3a1e69ef5728" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a44dd9300bf9713c9190c3a1e69ef5728">Radius</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the radius of the box, i.e. the length of the half diagonal of the box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35f5775304c754981b8a38d141737880"></a><!-- doxytag: member="Box::Vertex" ref="a35f5775304c754981b8a38d141737880" args="(int) const " -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a35f5775304c754981b8a38d141737880">Vertex</a> (int) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the k<sup>th</sup> vertex of the box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a913a6b1487999917a85d87b49b3c1c52"></a><!-- doxytag: member="Box::R" ref="a913a6b1487999917a85d87b49b3c1c52" args="(const Vector &amp;) const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a913a6b1487999917a85d87b49b3c1c52">R</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the minimum distance between the box and a point in space. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80db61cd35cae3122fe658ac079495ee"></a><!-- doxytag: member="Box::Normal" ref="a80db61cd35cae3122fe658ac079495ee" args="(const Vector &amp;) const " -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a80db61cd35cae3122fe658ac079495ee">Normal</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the normal vector between a point and a box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a6ac204afbbdc851645f33df16104292a">Intersect</a> (const <a class="el" href="class_ray.html">Ray</a> &amp;, <a class="el" href="class_intersection.html">Intersection</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersecting function.  <a href="#a6ac204afbbdc851645f33df16104292a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a53e6a5db3bcc420700f88e6759da805d">Intersect</a> (const <a class="el" href="class_ray.html">Ray</a> &amp;, <a class="el" href="class_intersection.html">Intersection</a> &amp;, <a class="el" href="class_intersection.html">Intersection</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersecting function.  <a href="#a53e6a5db3bcc420700f88e6759da805d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a13633b69e0fa7b8e6ca35c5d0fc65a8a">Intersect</a> (const <a class="el" href="class_ray.html">Ray</a> &amp;, double &amp;, <a class="el" href="class_vector.html">Vector</a> &amp;) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersecting function.  <a href="#a13633b69e0fa7b8e6ca35c5d0fc65a8a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5702737ae3929edb195e49d48abe25d"></a><!-- doxytag: member="Box::Intersect" ref="ac5702737ae3929edb195e49d48abe25d" args="(const Box &amp;) const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>Intersect</b> (const <a class="el" href="class_box.html">Box</a> &amp;) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#abc15073158a80e02f4b1fb32b50e1eb6">Inside</a> (const <a class="el" href="class_box.html">Box</a> &amp;) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Containing function.  <a href="#abc15073158a80e02f4b1fb32b50e1eb6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#aa3a80d26840216d02e1096e28333d65b">Inside</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Containing function.  <a href="#aa3a80d26840216d02e1096e28333d65b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#afb71788385a4f8ff91c6d8385972dde4">PMC</a> (const <a class="el" href="class_vector.html">Vector</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Containing function.  <a href="#afb71788385a4f8ff91c6d8385972dde4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae6092debba95840365b79a02f60d245c"></a><!-- doxytag: member="Box::Volume" ref="ae6092debba95840365b79a02f60d245c" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#ae6092debba95840365b79a02f60d245c">Volume</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the volume of a box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8e0a710afacb0bdeb3f751b40ab575b2"></a><!-- doxytag: member="Box::Area" ref="a8e0a710afacb0bdeb3f751b40ab575b2" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a8e0a710afacb0bdeb3f751b40ab575b2">Area</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the surface area of a box. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7bde7216a8ec3c840bdfd171f6c9b170"></a><!-- doxytag: member="Box::getPosition" ref="a7bde7216a8ec3c840bdfd171f6c9b170" args="()" -->
<a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getPosition</b> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#ab038c94f04821a9ab0e0313819e5187c">epsilon</a></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#af9c25486a750badb5e746ba616e44bce">a</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector.html">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_box.html#a9ba6812e3bc99ab5faf29f44550b57f5">b</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_box.html" title="Box class.">Box</a> class. </p>
<p><a class="el" href="class_box.html" title="Box class.">Box</a> is a primitive of the CSG </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="abc15073158a80e02f4b1fb32b50e1eb6"></a><!-- doxytag: member="Box::Inside" ref="abc15073158a80e02f4b1fb32b50e1eb6" args="(const Box &amp;) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Box::Inside </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_box.html">Box</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Containing function. </p>
<p>Checks if a box is inside the instance</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">box</td><td>: the box </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa3a80d26840216d02e1096e28333d65b"></a><!-- doxytag: member="Box::Inside" ref="aa3a80d26840216d02e1096e28333d65b" args="(const Vector &amp;) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Box::Inside </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Containing function. </p>
<p>Checks if a point is inside the instance</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">u</td><td>: the box </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6ac204afbbdc851645f33df16104292a"></a><!-- doxytag: member="Box::Intersect" ref="a6ac204afbbdc851645f33df16104292a" args="(const Ray &amp;, Intersection &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Box::Intersect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ray.html">Ray</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_intersection.html">Intersection</a> &amp;&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Intersecting function. </p>
<p>Compute the intersection between a box and a ray</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ray</td><td>: the ray </td></tr>
    <tr><td class="paramname">inter1</td><td>: the intersection </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_node.html#ac0836475b7b0275dffe5ce89547f6852">Node</a>.</p>

</div>
</div>
<a class="anchor" id="a53e6a5db3bcc420700f88e6759da805d"></a><!-- doxytag: member="Box::Intersect" ref="a53e6a5db3bcc420700f88e6759da805d" args="(const Ray &amp;, Intersection &amp;, Intersection &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Box::Intersect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ray.html">Ray</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_intersection.html">Intersection</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_intersection.html">Intersection</a> &amp;&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Intersecting function. </p>
<p>Compute the intersections between a box and a ray</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ray</td><td>: the ray </td></tr>
    <tr><td class="paramname">inter1</td><td>: the first intersection </td></tr>
    <tr><td class="paramname">inter2</td><td>: the second intersection </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_node.html#a8f308647523fba2603248b83149855a5">Node</a>.</p>

</div>
</div>
<a class="anchor" id="a13633b69e0fa7b8e6ca35c5d0fc65a8a"></a><!-- doxytag: member="Box::Intersect" ref="a13633b69e0fa7b8e6ca35c5d0fc65a8a" args="(const Ray &amp;, double &amp;, Vector &amp;) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Box::Intersect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ray.html">Ray</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Intersecting function. </p>
<p>Compute the first positive intersection between an axis aligned box and a ray</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ray</td><td>: the ray </td></tr>
    <tr><td class="paramname">t</td><td>: the first intersection </td></tr>
    <tr><td class="paramname">n</td><td>: the normal at intersection point </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afb71788385a4f8ff91c6d8385972dde4"></a><!-- doxytag: member="Box::PMC" ref="afb71788385a4f8ff91c6d8385972dde4" args="(const Vector &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Box::PMC </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector.html">Vector</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Containing function. </p>
<p>Checks if a point is inside the instance</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">u</td><td>: the point </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_node.html#aeecdf01a88be40840b65eb34cecc7a3c">Node</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="af9c25486a750badb5e746ba616e44bce"></a><!-- doxytag: member="Box::a" ref="af9c25486a750badb5e746ba616e44bce" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector.html">Vector</a> <a class="el" href="class_box.html#af9c25486a750badb5e746ba616e44bce">Box::a</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p><a class="el" href="class_box.html" title="Box class.">Box</a> bottom left point </p>

</div>
</div>
<a class="anchor" id="a9ba6812e3bc99ab5faf29f44550b57f5"></a><!-- doxytag: member="Box::b" ref="a9ba6812e3bc99ab5faf29f44550b57f5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector.html">Vector</a> <a class="el" href="class_box.html#a9ba6812e3bc99ab5faf29f44550b57f5">Box::b</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p><a class="el" href="class_box.html" title="Box class.">Box</a> upper right point </p>

</div>
</div>
<a class="anchor" id="ab038c94f04821a9ab0e0313819e5187c"></a><!-- doxytag: member="Box::epsilon" ref="ab038c94f04821a9ab0e0313819e5187c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const double <a class="el" href="class_box.html#ab038c94f04821a9ab0e0313819e5187c">Box::epsilon</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Epsilon value used to check intersections and some round off errors </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>headers/<a class="el" href="box_8h_source.html">box.h</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Oct 2 2011 17:01:12 for Cheshire-CSG by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
